﻿using System;
using System.Collections.Generic;
using DesignPattern.Builder.Computer;

namespace DesignPattern.Builder
{

    /// <summary>
    /// 抽象电脑构建者
    /// </summary>
    public abstract class AbsBuilderComputer
    {
        /// <summary>
        /// 电脑
        /// </summary>
        protected Computer.Computer computer { get; set; }

        /// <summary>
        /// 设置主机
        /// </summary>
        public abstract void SetHost();

        /// <summary>
        /// 设置键盘
        /// </summary>
        public abstract void SetKeyboarder();

        /// <summary>
        /// 设置鼠标
        /// </summary>
        public abstract void SetMouse();

        /// <summary>
        /// 获取电脑
        /// </summary>
        /// <returns></returns>
        public Computer.Computer Get()
        {
            return this.computer;
        }
    }

}
